@model AlphaWebsite.Models.DefaultBudgetItems

@* This partial view defines form fields that will appear when creating and editing entities *@

<div class="editor-label">
    @Html.LabelFor(model => model.Name)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Name)
    @Html.ValidationMessageFor(model => model.Name)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.EstimatedCost)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.EstimatedCost)
    @Html.ValidationMessageFor(model => model.EstimatedCost)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.ActualCost)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.ActualCost)
    @Html.ValidationMessageFor(model => model.ActualCost)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.AmountPaid)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.AmountPaid)
    @Html.ValidationMessageFor(model => model.AmountPaid)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.AmountDue)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.AmountDue)
    @Html.ValidationMessageFor(model => model.AmountDue)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.CostPercent)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.CostPercent)
    @Html.ValidationMessageFor(model => model.CostPercent)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.IsFixPercent)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.IsFixPercent)
    @Html.ValidationMessageFor(model => model.IsFixPercent)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.MinimumAmount)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.MinimumAmount)
    @Html.ValidationMessageFor(model => model.MinimumAmount)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Modified)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Modified)
    @Html.ValidationMessageFor(model => model.Modified)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Created)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Created)
    @Html.ValidationMessageFor(model => model.Created)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.ModifedBy)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.ModifedBy)
    @Html.ValidationMessageFor(model => model.ModifedBy)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.CreatedBy)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.CreatedBy)
    @Html.ValidationMessageFor(model => model.CreatedBy)
</div>

<div class="editor-label">
    BudgetCategory
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.BudgetCategoryID, ((IEnumerable<AlphaWebsite.Models.BudgetCategory>)ViewBag.PossibleBudgetCategories).Select(option => new SelectListItem {
        Text = Html.DisplayTextFor(_ => option).ToString(), 
        Value = option.BudgetCategoryID.ToString(),
        Selected = (Model != null) && (option.BudgetCategoryID == Model.BudgetCategoryID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.BudgetCategoryID)
</div>
